import java.sql.Timestamp;

public class ExamRecord {
    private int id;
    private int examId;
    private int studentId;
    private Timestamp startTime;
    private Timestamp submitTime;
    private double totalScore;
    private String status; // not_started, in_progress, submitted, graded

    public ExamRecord() {
    }

    public ExamRecord(int id, int examId, int studentId, String status) {
        this.id = id;
        this.examId = examId;
        this.studentId = studentId;
        this.status = status;
    }

    // Getters and Setters
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getExamId() {
        return examId;
    }

    public void setExamId(int examId) {
        this.examId = examId;
    }

    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    public Timestamp getStartTime() {
        return startTime;
    }

    public void setStartTime(Timestamp startTime) {
        this.startTime = startTime;
    }

    public Timestamp getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(Timestamp submitTime) {
        this.submitTime = submitTime;
    }

    public double getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(double totalScore) {
        this.totalScore = totalScore;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}